
---提醒反馈bug的全局实现
--[[
local music = fk.CreateSkill{
  name = "#hx__tips&",
  tags = { Skill.Compulsory, Skill.Permanent },
}

local extensionName = {"konglong"}

Fk:loadTranslationTable{
  ["#kl_tips-log"] = "%from的【%arg】技能<b>如有bug</b>，可扫描<b>回想</b>包中的二维码<b>反馈</b>，多谢！",
}

music:addEffect(fk.SkillEffect, {
  mute = true,
  global = true,
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(data.skill.name) and data.skill:isPlayerSkill(target) and
     player.room and player:usedSkillTimes(data.skill.name, Player.HistoryGame) == 1 and table.contains(extensionName, data.skill.package.extensionName)
  end,
  on_use = function(self, event, target, player, data)
    player.room:sendLog({type = "#kl_tips-log", from = player.id, arg = Fk:translate(data.skill.name) })
    if player.deputyGeneral == nil then
      player.room:doBroadcastNotify("ShowToast", "【"..Fk:translate(data.skill.name).."】技能<b>如有bug</b>，可扫描<b>回想包</b>中的二维码<b>反馈</b>，多谢！")
    else
      player.room:doBroadcastNotify("ShowToast", "【"..Fk:translate(data.skill.name).."】技能<b>如有bug</b>，可扫描<b>回想包</b>中的二维码<b>反馈</b>，多谢！")
    end
  end
})


return music
--]]
